<#include "../../page.ftl" />
<#assign security=JspTaglibs["/WEB-INF/security.tld"] />
<table class="table table-datatable table-gray check_table">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkAll" type="checkbox" value=""></th>
        <th>前缀</th>
        <th>序号</th>
        <th>后缀</th>
        <th>长度</th>
        <th>排序号</th>
        <th>类型</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if keyGeneratorsTable.rows??>
        <#list keyGeneratorsTable.rows as keyGenerator>
        <tr>
            <td><input name="ids" type="checkbox" value="${keyGenerator.id?c}"></td>
            <td>${keyGenerator.prefix!''}</td>
            <td>${keyGenerator.num!''}</td>
            <td>${keyGenerator.suffix!''}</td>
            <td>${keyGenerator.length!''}</td>
            <td>${keyGenerator.sortNo!''}</td>
            <td>
                <#list keyTypeList as keyType>
                <#if keyType.name() == keyGenerator.type!''>
                ${keyType.getDesc()}
                </#if>
            </#list>
            </td>
            <td>
                <@security.authorize ifAnyGranted="ROLE_KEYGEN_E">
                    <a class="btn btn-green btn-radio nopadding" title="编辑"
                       onclick="return popAddOrModify(${keyGenerator.id?c});"><i class="fa fa-edit"></i></a>
                </@security.authorize>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if keyGeneratorsTable??>
    <@page table=keyGeneratorsTable formId="search_keyGenerator_table"/>
</#if>